package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.iotechn.unimall.data.dto.goods.FileInfo;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 文章
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-04-21 13:35:44
 */

@Data
@TableName("unimall_shop_biaozhun_log")
public class ShopBiaozhunLogDO extends SuperDO {

    /**
     * 创建人
     */
    @TableField("admin_id")
    private Long adminId;
    /**
     * 创建时间/注册时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 最后更新时间
     */
    @TableField("gmt_update")
    private Date gmtUpdate;
    /**
     * 作者
     */
    @TableField("shop_name")
    private String shopName;
    /**
     * 内容
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 附件
     */
    @TableField("file")
    private String file;
    @TableField("jiedian_name")
    private String jiedianName;
    @TableField("jiedian_id")
    private Integer jiedianId;
    private Integer type;

    private String bunit;

    @TableField(exist = false)
    private List<FileInfo> imgsList;

    @TableField("gongcheng_pname")
    private String gongchengPName;
    @TableField(exist = false)
    private Long gongchengPId;


    @TableField(exist = false)
    private List<ShopBiaozhunDO> range;
    @TableField(exist = false)
    private List<ShopBiaozhunDO> rangeSon;

   /* public List<FileInfo> getList(){
        if(file!=null && !file.equals("")){
            Gson gson=new Gson();
            List<FileInfo> fileInfoList = gson.fromJson(file, new TypeToken<List<FileInfo>>(){}.getType());
            return fileInfoList;
        }
        return null;
    }*/
    /**
     * 标准名称
     */
    @TableField("gongcheng_name")
    private String gongchengName;

    /**
     * 标准值
     */
    @TableField("gongcheng_code")
    private String gongchengCode;
    /**
     * 完成值
     */
    @TableField("finish_value")
    private String finishValue;

    @TableField("finish_time")
    private Date finishTime;
    @TableField("desc")
    private String desc;

    private Integer status;

    private Float gongcheng_count;
    private Float gongcheng_price;
    private Float gongcheng_allprice;
    private Float gongcheng_tiaoprice;
    @TableField("biaozhun_id")
    private Long  biaozhunId;
    private Float today_count;
    private Date gmt_day;
    private Long shop_log_id;
    /**
     * 工程序号
     */
    @TableField("gongcheng_xuhao")
    private String gongchengXuhao;
    /**
     * 父级序号
     */
    @TableField("gongcheng_pxuhao")
    private String gongchengPxuhao;

}
